class Config {
  String defaultLocale;
  List<String> locales;
  String localePath;
  String generatedPath;
  List<String> ltr;
  List<String> rtl;
  String googleTranslateApiKey;

  Config(
      {this.defaultLocale = '',
      this.locales = const [],
      this.localePath = '',
      this.generatedPath = '',
      this.ltr = const [],
      this.rtl = const [],
      this.googleTranslateApiKey = ''});

  Config.fromJson(Map<String, dynamic> json) {
    defaultLocale = json['defaultLocale'];
    locales = json['locales'].cast<String>();
    localePath = json['localePath'];
    generatedPath = json['generatedPath'];
    ltr = json['ltr'].cast<String>();
    rtl = json['rtl'].cast<String>();
    googleTranslateApiKey = json['googleTranslateApiKey'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['defaultLocale'] = defaultLocale;
    data['locales'] = locales;
    data['localePath'] = localePath;
    data['generatedPath'] = generatedPath;
    data['ltr'] = ltr;
    data['rtl'] = rtl;
    data['googleTranslateApiKey'] = googleTranslateApiKey;
    return data;
  }
}
